package  uk.ac.bath.machines.bool;
import uk.ac.bath.legacy.Value;
import java.io.*;

public class Cmp extends BinaryOperator {


    public void binaryOp(Value a, Value b,Value result) {
	if (a.val < b.val ) result.val=0;
	else result.val=1.0;
    }

    public Object clone() {
        return this;
    }

    public void toString(StringWriter w) {
        w.write("Cmp ");
    }

}
